<?php
set_include_path ( '../../lib' . PATH_SEPARATOR . get_include_path () );
include 'z.php';

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript" type="text/javascript"
	src="./scripts/jquery-1.4.2.min.js"></script>
<title>file show</title>
</head>

<body>
<div style="width: 30%; float: left;">
<?

$d = dir ( './' );
$oldfilear = array ('left.php', 'right.php', 'index.php', 'help.txt 
', '.buildpath', '.project', '.settings' );

while ( false !== ($entry = $d->read ()) ) {
	if (! in_array ( $entry, $oldfilear )) {
		echo "
   	     <a href='showclass.php?page=$entry&sort=core'> $entry </a><br>

     	";
	}
}
$d->close ();

echo "<br><br><br><br>";

//////////////////////////////
$dir = '../../lib/Zend/';

$d = dir ( $dir );
$oldfilear = array ('left.php', 'right.php', 'index.php', 'help.txt 
', '.buildpath', '.project', '.settings' );

while ( false !== ($entry = $d->read ()) ) {
	if (! in_array ( $entry, $oldfilear )) {
		if (substr ( $entry, - 3 ) == 'php') {
			echo "
   	     <a href='showclass.php?page=$entry&sort=zend'> $entry </a><br>

     	";
		}
	}
}
$d->close ();

?>


</div>
<div style="width: 30%; float: left; padding-left: 20px;">

<?

if ($_GET ['page'] != '' && $_GET ['sort'] != '') {
	$page = $_GET ['page'];
	
	if ($_GET ['sort'] == 'core') {
		require_once $page;
		$class = substr ( $page, 0, - 4 );
		echo $class;
	} else {
		include "Zend/Loader.php";
		$zend_x = 'Zend_' . $page;
		$zend_x = substr ( $zend_x, 0, - 4 );
		
		$obj = strtolower ( $zend_x );
		
		echo "$zend_x<br>$obj<br>";
		zend_loader::loadclass ( $obj );
		$class = new $zend_x ();
	
	}
	
	try {
		$metholds = @$z->class_methods ( new $class () );
	} catch ( Exception $e ) {
		echo "对象不存在！";
		exit ();
	}
	
	if (is_array ( $metholds ) && count ( $metholds ) != 0) {
		foreach ( $metholds as $metholdk => $metholdv ) {
			echo "方法名称：" . $metholdv->name . "<br>";
		}
	}
}
?>

</div>



</body>
</html>